package tp.pr1;

public class Place {

	/**
	 * 
	 * @param name nombre dellugar
	 * @param isSpaceShip si es la nave o no
	 * @param description datos del lugar que se mostrarán al llegar a él
	 */
	public Place (String name, boolean isSpaceShip, String description){
		this.name = new String(name);
		this.description = new String(description);
		this.isSpaceShip = isSpaceShip;
	}
	


	/**
	 * 
	 * @return isSpaceShip;
	 */
	public boolean isSpaceship (){
		return isSpaceShip;
	}
	
	/**
	 * 
	 * @return Nombre + ": " + descripcion
	 */
	public String toString (){
		return (name + Interpreter.LINE_SEPARATOR + description); 
	}
	
;
	private String name; 
	private boolean isSpaceShip;
	private String description;
}
